<%= form_for(@traffic_violation) do |f| %>
  <% if @traffic_violation.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@traffic_violation.errors.count, "error") %> prohibited this traffic_violation from being saved:</h2>

      <ul>
      <% @traffic_violation.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :voilated_at %><br>
    <%= f.datetime_select :voilated_at %>
  </div>
  <div class="field">
    <%= f.label :location %><br>
    <%= f.text_area :location %>
  </div>
  <div class="field">
    <%= f.label :action %><br>
    <%= f.text_area :action %>
  </div>
  <div class="field">
    <%= f.label :code %><br>
    <%= f.text_field :code %>
  </div>
  <div class="field">
    <%= f.label :deduction %><br>
    <%= f.number_field :deduction %>
  </div>
  <div class="field">
    <%= f.label :fine_amount %><br>
    <%= f.number_field :fine_amount %>
  </div>
  <div class="field">
    <%= f.label :handled %><br>
    <%= f.check_box :handled %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
